﻿// -----------------------------------------------------------------------
// <copyright file="Eq.cs" company="Microsoft">
// TODO: Update copyright text.
// </copyright>
// -----------------------------------------------------------------------

namespace CFScript.Operators
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Diagnostics;

    /// <summary>
    /// TODO: Update summary.
    /// </summary>
    public class Eq:BooleanOperator
    {
        public Eq()
        {
            this.numParameters = 2;
        }

        public override bool Evaluate(params BooleanParameter[] parameters)
        {
            Debug.Assert(parameters != null && parameters.Length == 2);

            return parameters[0] == parameters[1];
        }
    }
}
